<template>
  <div class="welcome">
    <div class="content">
      <div class="sub-title">欢迎体验</div>
      <div class="title">通用后台管理系统</div>
      <div class="desc">Vue3.0+Elementplus+Node+Mongodb打造后台</div>
      <div v-if="mydata">data1</div>
      <div v-else-if="mydata1">data2</div>
      
    </div>
    <div class="img"></div>
  </div>
</template>

<script>
export default {
  data(){
    return {
      mydata: 1,
      mydata1: 1
    }
  },
    onMounted(){
      console.log(`测试211129，提交使用`)
    }
}
</script>

<style lang="scss" scoped>
.welcome {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  background-color: #fff;
  .content {
    position: relative;
    bottom: 40px; 
    .sub-title {
      font-size: 30px;
      line-height: 42px;
      color: #333;
    }

    .title {
      font-size: 40px;
      line-height: 62px;
      margin-bottom: 15px;
      color: #409eff;
      font-weight: 800;
    }

    .desc {
      text-align: right;
      font-size: 14px;
      color: #999;
    }
  }

  .img {
    background-image: url('../assets/images/welcome.png');
    width: 371px;
    height: 438px;
    margin-left: 105px;
  }
}
</style>